package com.ruoyi.crm.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.BaseFlowEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商机产品折扣对象 crm_order_product_discount
 *
 * @author yanwenliang
 * @date 2024-11-04
 */
@Data
@TableName("crm_order_product_discount")
public class CrmOrderProductDiscount extends BaseFlowEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品折扣id */
    @TableId(type = IdType.ASSIGN_ID)
    private String discountId;

    /** 商机id */
    @Excel(name = "商机id")
    private String orderId;

    /** 产品id */
    @Excel(name = "产品id")
    private String productId;

    /** 折扣率 */
    @Excel(name = "折扣率")
    private BigDecimal discountRate;

    /** 折扣后金额 */
    @Excel(name = "折扣后金额")
    private BigDecimal discountPrice;

    /** 申请人id */
    private String userId;

    /** 删除标志(0 未删除 1 删除) */
    @TableLogic
    private String delFlag;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否申请折扣标识（0 申请， 1 不申请）
     */
    @TableField(exist = false)
    private String isDiscount;

    /**
     * 产品名称
     */
    @TableField(exist = false)
    private String productName;

    /**
     * 商机名称
     */
    @TableField(exist = false)
    private String orderName;

    /**
     * 产品出货价
     */
    @TableField(exist = false)
    private BigDecimal shippingPrice;

}
